package com.project.bean;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelTarget;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * 供应商实体类
 * @author Zchaolin
 * @version 1.0
 * @created 29-7月-2022 9:34:35
 */
@TableName("t_supplier")
@ExcelTarget("users")//实体描述
public class SupplierBean {

	/**
	 * 供应商编号
	 */
	@TableId(value = "pk_supplierId",type = IdType.AUTO)
	@Excel(name = "编号")
	private Integer id;
	/**
	 * 供应商名称
	 */
	@TableField("s_name")
	@Excel(name = "供应商名")
	private String name;
	/**
	 * 负责人
	 */
	@TableField("s_leadingCadre")
	@Excel(name = "负责人")
	private String leadingCadre;
	/**
	 * 负责人电话
	 */
	@TableField("s_phone")
	@Excel(name = "电话")
	private String phone;
	/**
	 * 供应商地址
	 */
	@TableField("s_address")
	@Excel(name = "地址")
	private String address;
	/**
	 * 经营范围
	 */
	@TableField("s_range")
	@Excel(name = "经营范围")
	private String supRange;

	public SupplierBean(){

	}

	public SupplierBean(String name, String leadingCadre, String phone, String address, String supRange) {
		this.name = name;
		this.leadingCadre = leadingCadre;
		this.phone = phone;
		this.address = address;
		this.supRange = supRange;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getLeadingCadre() {
		return leadingCadre;
	}

	public void setLeadingCadre(String leadingCadre) {
		this.leadingCadre = leadingCadre;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getSupRange() {
		return supRange;
	}

	public void setSupRange(String supRange) {
		this.supRange = supRange;
	}

	@Override
	public String toString() {
		return "SupplierBean{" +
				"id=" + id +
				", name='" + name + '\'' +
				", leadingCadre='" + leadingCadre + '\'' +
				", phone='" + phone + '\'' +
				", address='" + address + '\'' +
				", supRange='" + supRange + '\'' +
				'}'+"\n";
	}
}